<?php
/**
 * Description of EmailService
 *
 * @author Magno
 */
class EmailService {
    
    function __construct() {
        
    }

    #por fazer
    public function enviarEmail($destino, $conteudo){
        return true;
    }
    
    public static function existeEmailArray($email, $array){
        
        for ($i = 0; $i < count($array); $i++) {
            
            print_r($array);
            
            echo strtolower($array[$i])." $i<br>"; 
            echo strtolower($email)." <br>"; 
            
            if(strcmp( strtolower(trim($array[$i])), strtolower(trim($email)) ) == 0)
                return true;
        }
        return false;
    }
}

?>
